﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <style type="text/css">
        ul
        {
            margin: 0px;
            padding: 0px;
        }
    </style>
    <script src="Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
</head>
<body>
    <ul></ul>
        <script type="text/javascript">
            $(function () {
                $("ul").each(function () {
                    $.get("handler/TourismTypeHandler.ashx?t=" + new Date(), function (d) {
                        if (d.data != "" && d.data != "undefinde") {
                            for (var i = 0; i < d.data.length; i++) {
                                if ($("ul").find("li").size() > 0) {
                                    $("ul").find("li:last").append($("<li/>").text(d.data[i].Name).attr("tid", d.data[i].Code).append($("<span/>").text(22)));
                                } else {
                                    $("ul").append($("<li/>").text(d.data[i].Name).attr("tid", d.data[i].Code).append($("<span/>").text(232)));
                                }
                            }

                        }
                    })
                })
            })
        </script>
</body>
</html>
